<#if isRoot>
[{
	"name": "<@s.m "channel.root"/>",
	"url":"v_list.do", 
	"target":"rightFrame"
	<#if list?size gt 0>,
	"open": true,
	"children": [
	<#list list as channel>
		{
		"root": "${channel.id}",
		"name": "${channel.name}",
		"url":"<#if channel.child?size gt 0>v_list.do?root=${channel.id}<#else>v_edit.do?id=${channel.id}</#if>", 
		"target":"rightFrame",
		"isParent": <#if channel.child?size gt 0>true<#else>false</#if>
		}<#if channel_has_next>,</#if>
	</#list>
	]
	</#if>
}]
<#else>
	[
	<#list list as channel>
		{
		"root": "${channel.id}",
		"name": "${channel.name}",
		"url":"<#if channel.child?size gt 0>v_list.do?root=${channel.id}<#else>v_edit.do?id=${channel.id}</#if>", 
		"target":"rightFrame",
		"isParent": <#if channel.child?size gt 0>true<#else>false</#if>
		}<#if channel_has_next>,</#if>
	</#list>
	]
</#if>


